import axios from "axios";
export const getFindRoomList=()=>{
    return (dispatch)=>{
        axios({url:"https://www.fastmock.site/mock/448a8350298d772a39e9da6dd41752c0/honeyemobile/api/getFindHouseData"}).then(result=>{
            console.log(result,"res");
            dispatch({
                type:"GETROOMLIST",
                payload:result.data.data
            })
        })
    }
}

export const getSearchFindRoom = (val)=>{
    return (dispatch)=>{
        dispatch({
            type:"GET_SEARCHROOM",
            payload:val
        })
    }
}
